Fatal error: Uncaught exception 'DatabaseException' with message 'SQL query failed with error #1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%20currImg.link%20+%20'' AND b.grupa>0 ORDER BY b.grupa ASC, b.pozycja ASC' at line 1
SQL: SELECT a.*, b.parent, b.id as id2, b.grupa FROM kat a LEFT JOIN menu b ON a.id=b.id_kat WHERE a.status=1 AND a.id_jezyk=1 AND alias=''%20+%20currImg.link%20+%20'' AND b.grupa>0 ORDER BY b.grupa ASC, b.pozycja ASC' in /home/leczna/public_html/libs/baza.php:171
Stack trace:
#0 /home/leczna/public_html/_class/RouteAddr.php(188): baza->query('SELECT a.*, b.p...', '1', ''%20+%20currImg...')
#1 /home/leczna/public_html/_class/RouteAddr.php(69): RouteAddr->dbSearch()
#2 /home/leczna/public_html/index.php(16): RouteAddr->init()
#3 {main}
thrown in /home/leczna/public_html/libs/baza.php on line 171